/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.ec.supplierapply.entity.SupplierOperator
   Module Description   :

   Date Created      : 2009/11/23
   Original Author   : andy.chuang
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.ec.supplierapply.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.yaodian100.core.admin.entity.User;
import com.yaodian100.core.common.entity.BaseEntity;

/**
 * @author andy.chuang
 *
 */
@Entity
@Table(name="EC_SUPPLIER_OPERATOR")
public class SupplierOperator extends BaseEntity{
    /**
     * 
     */
    private static final long serialVersionUID = -7488846791270999693L;
    public static final Integer OPERATOR_ADMIN=0;
    public static final Integer OPERATOR_USER_PM=1;
    public static final Integer OPERATOR_USER_FM=2;
    public static final Integer OPERATOR_USER=3;
    private String id;
    private User user;
    private Integer role;
    /**
     * @return the id
     */
    @Id
    @GeneratedValue(generator="system-uuid")
    @GenericGenerator(name="system-uuid", strategy="uuid")
    @Column(length=32)
    public String getId() {
        return id;
    }
    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }
    /**
     * @return the user
     */
    @ManyToOne
    public User getUser() {
        return user;
    }
    /**
     * @param user the user to set
     */
    public void setUser(User user) {
        this.user = user;
    }
    /**
     * @return the role
     */
    public Integer getRole() {
        return role;
    }
    /**
     * @param role the role to set
     */
    public void setRole(Integer role) {
        this.role = role;
    }
}
